package com.study.selection.dao;

import com.study.selection.model.Student;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentDao {

    List<Student> findAll();

    List<Student> findByKey(String key);

    int addStudent(Student student);

    Student getByStudentId(int studentId);

    List<Student> getByCollegeId(int collegeId);

    //根据班级编号查询
    List<Student> getByClassId(int classId);

    //根据专业编号查询
    List<Student> getByMajorId(int majorId);

    int updateStudent(Student student);
    // 逻辑删除
    int deleteStudent(int studentId);

}
